#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int main()
{
	int y = 0;
	int x = 0;
	for (y = 1000; y <= 2000; y++)
	{
		if ((y % 4 == 0) && (y % 100 != 0) || (y % 400 == 0))
		{
			printf("%d ", y);
			x++;
		}
	}
	printf("\n x = %d \n", x);
	return 0;
}